package com.xc.tjise.TJISE.day08;

import java.io.*;

public class Test01 {
    public static void main(String[] args) throws IOException {
        InputStream inputStream = new FileInputStream("D:/Ra2Game412/gamemd-spawn.exe");
        OutputStream outputStream = new  FileOutputStream("D:/demo.exe");
//        FileReader fileReader = new FileReader("D:/Ra2Game412/gamemd-spawn.exe");
//        FileWriter fileWriter = new FileWriter("D:/demo.exe");
        int i;
        while ((i=inputStream.read())!=-1){
            outputStream.write(i);
        }
        inputStream.close();
        outputStream.close();// 最后调用close 来关闭读写器
    }
}
